package com.liang.auth.infra.basic.service;

import com.liang.auth.infra.basic.entity.AuthUser;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 29018
* @description 针对表【auth_user】的数据库操作Service
* @createDate 2024-10-22 14:13:21
*/
public interface AuthUserService extends IService<AuthUser> {

    /**
     * 判断用户是否存在
     */
    Integer countByOpenId(String openId);

    /**
     * 根据用户名查询用户
     */
    AuthUser getUserInfo(AuthUser authUser);

    /**
     * 根据用户名批量查询用户
     */
    List<AuthUser> getByUsernames(List<String> usernameList);
}
